<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>认证页面</title>
    <!-- Fav and touch icons -->
    <script type="text/javascript" src="jquery-2.1.1.min.js"></script>
    <script type="text/javascript">

        function submit () {
            $("#submitForm").submit();
            $.ajax({
                type: 'post',
                url: "http://127.0.0.1:8010/pay/getOrder",
                dataType: 'json',
                success: function(result){
                    $("#sign").val(result.sign);
                    $("#merOrderId").val(result.merOrderId);
                    $("#date").val(result.date);
                    $("#param").val(result.params);
                    $("#submitForm").submit();
                    },
                error:function(ee){
                   console.log(ee)
                }
            });
        }
        //   $("#param").val("{\"amount\":\"10000\",\"payerUserId\":\"103\",\"transferPayType\":\"1\",\"actionType\":\"1\",\"topupType\":\"1\",\"payType\":\"1\",\"payeeUserList\":[{\"orderId\":\"123321\",\"payeeUserId\":\"0\",\"payeeAmount\":\"10000\",\"transferType\":\"1\",\"feeType\":\"0\"}],\"frontUrl\":\"http://njtc.ngrok.xiaomiqiu.cn/pay/resisterBack\",\"notifyUrl\":\"http://njtc.ngrok.xiaomiqiu.cn/pay/resisterBack\"}");
    </script>
</head>

<body>

<input type="button"  value="提交" onclick="submit()">
<form id="submitForm" method="post" action="http://cmbtest.trhui.com/tpam/service/interface/orderTransfer">
    <input  id="merOrderId" name="merOrderId" value="订单号"><input type="button" value="订单号"><br/>
    <input  id="merchantNo" name="merchantNo" value="taichuan"><input type="button" value="账号"><br/>
    <input  id="sign" name="sign" value="签名"><input type="button" value="签名"><br/>
    <input  id="serverCode" name="serverCode" value="orderTransfer"><input type="button" value="接口名"><br/>
    <input  name="version" value="1.0.0"><input type="button" value="版本"><br/>
    <input  id="param" name="params" value='业务参数'><input type="button" value="业务参数"><br/>
    <input  id="date" name="date" value="时间戳"><input type="button" value="时间戳">
    <input type="submit"  value="Submit">
</form>
</body>


</html>